#include <QtGui/QtGui>
#include <iostream>
#include "RemeshWindown.h"
//#include <Mesh_algo.h>
#include <TriMesh_algo.h>
#include "debug.h"

RemeshWindown::RemeshWindown(QWidget *parent, Qt::WFlags flags)
	: Framework(parent, flags)
{
	//ui.setupUi(this);
	ui.setupUi(getUi().dockWidgetContents);
	ui.pushButtonRemesh->show();

	connect(ui.pushButtonRemesh, SIGNAL(clicked()), this, SLOT(pushButtonRemesh_clicked()));
}

void RemeshWindown::pushButtonRemesh_clicked()
{
	if(getMesh())
	{
		dbg(-1)<<getMesh()->vertices.size();
		edgeflip(getMesh());
		updatGL();
	}
}